﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ShopB2C.Core.Entities;

namespace ShopB2C.Core {
    /// <summary>
    /// 基类接口 for ViewModel
    /// </summary>
    public interface IBaseViewModel {
        PagerParams PagerParams { get; set; }
    }
    /// <summary>
    /// 抽象类 for ViewModel
    /// </summary>
    public abstract class BaseViewModel : IBaseViewModel {

        private PagerParams _pagerParams;
        public PagerParams PagerParams {
            get {
                if (this._pagerParams == null) {
                    return new PagerParams();
                }
                return this._pagerParams;
            }
            set {
                this._pagerParams = value;
            }
        }
    }
}
